<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>打赏作者 - 王three个人网站</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            color: #333;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .container {
            max-width: 600px;
            margin: 0 auto;
            background-color: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        header {
            background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
            color: white;
            padding: 25px 30px;
            width: 100%;
            text-align: center;
            position: relative;
        }
        
        .back-btn {
            position: absolute;
            top: 20px;
            left: 20px;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .back-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateX(-3px);
        }
        
        h1 {
            text-align: center;
            font-size: 2.2rem;
            margin: 0;
            padding: 0 40px;
        }
        
        .reward-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 30px;
            text-align: center;
            width: 100%;
        }
        
        .thank-you-text {
            font-size: 1.2rem;
            line-height: 1.6;
            margin-bottom: 30px;
            color: #555;
            max-width: 500px;
        }
        
        .qrcode-container {
            margin: 20px 0;
            padding: 15px;
            background: #f9f9f9;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
            align-items: center;
            max-width: 100%;
        }
        
        .qrcode-container img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            border: 1px solid #eee;
        }
        
        .support-text {
            margin-top: 20px;
            font-style: italic;
            color: #777;
            font-size: 0.9rem;
        }
        
        footer {
            text-align: center;
            padding: 20px;
            background-color: #2c3e50;
            color: white;
            width: 100%;
            margin-top: auto;
        }
        
        @media (max-width: 768px) {
            h1 {
                font-size: 1.8rem;
                padding: 0 30px;
            }
            
            .back-btn {
                top: 15px;
                left: 15px;
                padding: 8px 12px;
            }
            
            .thank-you-text {
                font-size: 1.1rem;
            }
            
            .container {
                margin: 20px;
                width: calc(100% - 40px);
            }
        }
        
        @media (max-width: 480px) {
            h1 {
                font-size: 1.5rem;
                padding: 0 20px;
            }
            
            .back-btn {
                position: relative;
                top: 0;
                left: 0;
                margin-bottom: 15px;
                align-self: flex-start;
            }
            
            header {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
            }
            
            .thank-you-text {
                font-size: 1rem;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <a href="index.html" class="back-btn">← 返回首页</a>
            <h1>打赏作者</h1>
        </header>
        
        <div class="reward-content">
            <p class="thank-you-text">作者制作不容易，如果你觉得还不错，就给个支持吧~求求了~</p>
            
            <div class="qrcode-container">
                <img src="images/收款码.jpg" alt="打赏二维码">
                <p class="support-text">感谢您的支持！</p>
            </div>
        </div>
        
        <footer>
            <p>© 2025 王three个人网站 - 打赏作者</p>
        </footer>
    </div>

    <script>
        // 图片加载错误处理
        document.querySelectorAll('img').forEach(img => {
            img.onerror = function() {
                this.src = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Crect width='300' height='300' fill='%23f0f0f0'/%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' font-family='sans-serif' font-size='16' fill='%23999'%3E图片加载失败%3C/text%3E%3C/svg%3E";
                this.alt = "图片加载失败";
            };
        });
    </script>
</body>
</html>